package com.ysy.tz.mfg.entity;

import com.ysy.tz.core.engine.KeyValuePair;

public class FlightsEntity implements KeyValuePair {
    private Integer enterpriseId;
    private String flightsCode;
    private String flightsName;
    private String beginTime;
    private String endTime;

    public String getKeyPair() {
        return this.flightsCode;
    }

    public String getValuePair() {
        return this.flightsName;
    }

    public FlightsEntity() {
    }

    public Integer getEnterpriseId() {
        return this.enterpriseId;
    }

    public String getFlightsCode() {
        return this.flightsCode;
    }

    public String getFlightsName() {
        return this.flightsName;
    }

    public String getBeginTime() {
        return this.beginTime;
    }

    public String getEndTime() {
        return this.endTime;
    }

    public void setEnterpriseId(Integer enterpriseId) {
        this.enterpriseId = enterpriseId;
    }

    public void setFlightsCode(String flightsCode) {
        this.flightsCode = flightsCode;
    }

    public void setFlightsName(String flightsName) {
        this.flightsName = flightsName;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof FlightsEntity)) {
            return false;
        } else {
            FlightsEntity other = (FlightsEntity)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label71: {
                    Object this$enterpriseId = this.getEnterpriseId();
                    Object other$enterpriseId = other.getEnterpriseId();
                    if (this$enterpriseId == null) {
                        if (other$enterpriseId == null) {
                            break label71;
                        }
                    } else if (this$enterpriseId.equals(other$enterpriseId)) {
                        break label71;
                    }

                    return false;
                }

                Object this$flightsCode = this.getFlightsCode();
                Object other$flightsCode = other.getFlightsCode();
                if (this$flightsCode == null) {
                    if (other$flightsCode != null) {
                        return false;
                    }
                } else if (!this$flightsCode.equals(other$flightsCode)) {
                    return false;
                }

                label57: {
                    Object this$flightsName = this.getFlightsName();
                    Object other$flightsName = other.getFlightsName();
                    if (this$flightsName == null) {
                        if (other$flightsName == null) {
                            break label57;
                        }
                    } else if (this$flightsName.equals(other$flightsName)) {
                        break label57;
                    }

                    return false;
                }

                Object this$beginTime = this.getBeginTime();
                Object other$beginTime = other.getBeginTime();
                if (this$beginTime == null) {
                    if (other$beginTime != null) {
                        return false;
                    }
                } else if (!this$beginTime.equals(other$beginTime)) {
                    return false;
                }

                Object this$endTime = this.getEndTime();
                Object other$endTime = other.getEndTime();
                if (this$endTime == null) {
                    if (other$endTime == null) {
                        return true;
                    }
                } else if (this$endTime.equals(other$endTime)) {
                    return true;
                }

                return false;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof FlightsEntity;
    }

    public int hashCode() {
        int result = 1;
        Object $enterpriseId = this.getEnterpriseId();
        result = result * 59 + ($enterpriseId == null ? 43 : $enterpriseId.hashCode());
        Object $flightsCode = this.getFlightsCode();
        result = result * 59 + ($flightsCode == null ? 43 : $flightsCode.hashCode());
        Object $flightsName = this.getFlightsName();
        result = result * 59 + ($flightsName == null ? 43 : $flightsName.hashCode());
        Object $beginTime = this.getBeginTime();
        result = result * 59 + ($beginTime == null ? 43 : $beginTime.hashCode());
        Object $endTime = this.getEndTime();
        result = result * 59 + ($endTime == null ? 43 : $endTime.hashCode());
        return result;
    }

    public String toString() {
        return "FlightsEntity(enterpriseId=" + this.getEnterpriseId() + ", flightsCode=" + this.getFlightsCode() + ", flightsName=" + this.getFlightsName() + ", beginTime=" + this.getBeginTime() + ", endTime=" + this.getEndTime() + ")";
    }
}
